<!-- 垂直于大地表面的 Marker 图层 详情参数参考官网 -->
<template>
  <div class="markAttriubte">
    <el-amap-loca-z-marker
      :initEvents="false"
      v-for="(markItem, index) in zMarkerLayerComponents"
      :key="markItem"
      :visible="markItem.visible"
      :source-data="markItem.sourceData"
      :layer-style="markItem.layerStyle"
      :visible-duration="500"
      :ref="`zMarkerLayerComponents${index}`"
    />
  </div>
</template>

<script>
export default {
  props: ['zMarkerLayerComponents'],
  methods: {
    getzMarkerLayerComponentsRef(index) {
      return this.$refs[`zMarkerLayerComponents${index}`];
    },
  },
};
</script>
<style lang="less" scoped></style>
